﻿<?php
//session_start();//session开启
require_once "config.php";
//自动加载对象
	function __autoload($className){
		require_once("class_".lcfirst($className).".php");
	
	}
//实例化mysql类
	$mysql=new mysql();
	$mysql->host=$host;
	$mysql->username=$username;
	$mysql->password=$password;
	$mysql->db=$db;
	$mysql->connect();
	$mysql->selectDb();
	$mysql->query("SET NAMES 'utf8'");
	//echo $mysql->host."<br/>";
	//echo $mysql->username."<br/>";
	//echo $mysql->password."<br/>";
	//echo $mysql->db."<br/>";
//session设置
	
?>
